package com.renren.project.admin;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName AdminApplication
 * @Description TODO
 * @createTime 14:58:00 2021/02/07
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.renren.project.db", "com.renren.project.core","com.renren.project.admin"})
@MapperScan("com.renren.project.db.modules.*.dao")
@EnableTransactionManagement
@EnableScheduling
@Slf4j
public class AdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        log.info("=======================管理端API启动成功========================");
    }
}
